<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<body>
  <form id="test1">
      <input type="text">
      <input type="file">
      <button type="button" onclick="test()">发送</button>
  </form>

</body>
<script>
    function test(){
        let data = new FormData($("#test1")[0])
        axios.post("localhost:12000/wanderingdream/wanderingdream-donation/donation/othersinformationdonation/save",data).then(res=>{
            alert(res.data)
        }).catch(err=>{
            alert(err)
        })
    }

</script>
</html>